<template>
    <div class="search-input">
        <search-input :areaData="areaData"></search-input>
    </div>
</template>

<script>
    import SearchInput from '../../../components/map/map-search';
    export default {
        components: {
            SearchInput
        },
        data() {
            return {
                areaApi: 'express/area?status=1&pageSize=200',
                areaData: []
            };
        },
        created() {
        },
        mounted() {
            this.getArea();
        },
        methods: {
            getArea() {
                this.$http.get(this.areaApi)
                    .then((response) => {
                        this.areaData = response.data.data;
                    })
                    .catch((error) => {
                        this.$message.error('请求数据错误');
                    });
            }, // 获取区域信息
        }
    };
</script>
<style lang="less" scoped>
</style>
